How to Defining member functions Inside and Outside the class